<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRM</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/formalClient.js"></script>
</head>
<body>
<table id="potent_datagrid"></table>

<div id="potent_toolbar">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'" data-cmd="edit">修改信息</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-turnover'" data-cmd="transfer">移交客户</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="showQuery">高级查询</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="clearQuery">查询全部</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" data-cmd="reload">刷新</a>
    <div id="queryObject" data-num="1">
        <span>创建时间:</span><input class="easyui-datebox" id="beginDate">
        <span>～</span>
        <input class="easyui-datebox" id="endDate">&nbsp;
        <span>精确搜索:</span>
        <input class="easyui-textbox" id="qoCard" prompt="身份证">&nbsp;
        <input class="easyui-textbox" id="qoTel" prompt="电话">&nbsp;
        <span>模糊查询:</span>
        <input class="easyui-textbox" id="qoPri" prompt="负责人">&nbsp;
        <input class="easyui-textbox" id="keyword" prompt="客户姓名/身份证/邮箱">&nbsp;
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="query"></a>
    </div>
</div>

<div id="transfer_dialog" align="center">
    <form id="transfer_form" method="post">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px" style="width: 500px" align="center">
                <td width="20"></td>
                <td>要移交的客户:</td>
                <input type="hidden" name="id">
                <td><span id="name"></span></td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td width="20"></td>
                <td>当前负责人:</td>
                <input type="hidden" name="oldSeller.id">
                <td><span id="chargeUser"></span></td>
            </tr>
            <tr></tr>
            <tr></tr>
            <tr></tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td width="20"></td>
                <td>要移交给:</td>
                <td>
                    <input class="easyui-combobox"
                           data-options="url:'/employee/listAll.do',valueField:'id',textField:'realname'"
                           name="priId">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td width="20"></td>
                <td>移交原因:</td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td width="20"></td>
                <td colspan="2"><textarea name="transReason" cols="33" rows="5"></textarea></td>
            </tr>
        </table>
    </form>
</div>

<div id="potent_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save">添加</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>
<div id="transfer_btns">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="transferSave">添加</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="transferCancel">取消</a>
</div>

<div id="potent_dialog" align="center">
    <form method="post" id="potent_form">
        <input type="hidden" name="id">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    姓名:
                </td>
                <td>
                    <input class="easyui-textbox" name="name">
                </td>
                <td>
                    年龄:
                </td>
                <td>
                    <input class="easyui-textbox" name="age">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    电话:
                </td>
                <td>
                    <input class="easyui-textbox" name="tel">
                </td>
                <td>
                    性别:
                </td>
                <td>
                    <input class="easyui-combobox" name="gender"
                           prompt="请选择"
                           data-options="panelHeight:'auto',
                            valueField: 'id',
                            textField: 'value',
                            limitToList: true,
                            editable:false,
                            data: [{
                                id: '0',
                                value: '未知'
                            },{
                                id: '1',
                                value: '男'
                            },{
                                id: '2',
                                value: '女'
                            }]">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    邮箱:
                </td>
                <td>
                    <input class="easyui-textbox" name="email">
                </td>
                <td>
                    地址:
                </td>
                <td>
                    <input class="easyui-textbox" name="address">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    QQ:
                </td>
                <td>
                    <input class="easyui-textbox" name="qq">
                </td>
                <td>
                    微信:
                </td>
                <td>
                    <input class="easyui-textbox" name="weChat">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    职业:
                </td>
                <td>
                    <input class="easyui-combobox" name="job.id" prompt="请选择"
                           data-options="editable:false,limitToList:true,panelHeight:'auto',valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=jobs'">
                </td>
                <td>
                    客户来源:
                </td>
                <td>
                    <input class="easyui-combobox" name="root.id" prompt="请选择"
                           data-options="editable:false,limitToList:true,panelHeight:'auto',valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=source'">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    收入水平:
                </td>
                <td>
                    <input class="easyui-combobox" name="pay.id" prompt="请选择"
                           data-options="editable:false,limitToList:true,panelHeight:'auto',valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=income'">
                </td>
                <td>
                    身份证号:
                </td>
                <td>
                    <input class="easyui-textbox" name="card">
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>